package com.ph.irp.base.assistantmaterial.service.impl;
import java.util.List;
import com.ph.irp.base.assistantmaterial.dao.PBaseAssistantmaterialCandiatecategoryDao;
import com.ph.irp.base.assistantmaterial.service.PBaseAssistantmaterialCandiatecategoryService;
import com.ph.irp.model.PBaseAssistantmaterialCandiatecategory;

public class PBaseAssistantmaterialCandiatecategoryServiceImpl implements
		PBaseAssistantmaterialCandiatecategoryService {
	private PBaseAssistantmaterialCandiatecategoryDao candiateCategoryDaoProxy;

	public PBaseAssistantmaterialCandiatecategoryDao getCandiateCategoryDaoProxy() {
		return candiateCategoryDaoProxy;
	}

	public void setCandiateCategoryDaoProxy(
			PBaseAssistantmaterialCandiatecategoryDao candiateCategoryDaoProxy) {
		this.candiateCategoryDaoProxy = candiateCategoryDaoProxy;
	}

	@Override
	public void addCandiateCategory(
			PBaseAssistantmaterialCandiatecategory candiateCategory)
			throws Throwable {
		candiateCategoryDaoProxy.addCandiateCategory(candiateCategory);
	}

	@Override
	public void deleteCandiateCategory(int candiateCategoryId)
			throws Throwable {
		candiateCategoryDaoProxy.deleteCandiateCategory(candiateCategoryId);
	}

	@Override
	public PBaseAssistantmaterialCandiatecategory getCandiateCategoryById(
			int candiateCategoryId) throws Throwable {
		return candiateCategoryDaoProxy.getCandiateCategoryById(candiateCategoryId);
	}

	@Override
	public List<PBaseAssistantmaterialCandiatecategory> getCandiateCategoryList()
			throws Throwable {
		return candiateCategoryDaoProxy.getCandiateCategoryList();
	}

	@Override
	public void updateCandiateCategory(
			PBaseAssistantmaterialCandiatecategory candiateCategory) throws Throwable {
		candiateCategoryDaoProxy.updateCandiateCategory(candiateCategory);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<PBaseAssistantmaterialCandiatecategory> getCandiateCategoryByCode(
			String code) throws Throwable {
		return candiateCategoryDaoProxy.getCandiateCategoryByCode(code);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<PBaseAssistantmaterialCandiatecategory> getCandiateCategoryByName(
			String name) throws Throwable {
		return candiateCategoryDaoProxy.getCandiateCategoryByName(name);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<PBaseAssistantmaterialCandiatecategory> getCandiateCategoryByNameAndCode(
			String name, String code) throws Throwable {
		return candiateCategoryDaoProxy.getCandiateCategoryByNameAndCode(name, code);
	}
	
	

}
